
//
//  Animal.m
//  AnimalProject
//
//  Created by Yiqiao on 15/4/20.
//  Copyright (c) 2015年 Yiqiao. All rights reserved.
//

#import "Animal.h"

@implementation Animal

- (id)initWithAge:(NSInteger)age AndColor:(NSString *)color AndHeight:(NSInteger)height{
    _age = age;
    _color = color;
    _height = height;
    return self;
}

- (id)initWithAge:(NSInteger)age AndColor:(NSString *)color{
    _age = age;
    _color = color;
    return self;
}

- (void)set{
    _age = 1;
    _color = @"black";
    _height = 1;
}

- (NSString *)description{
    return [NSString stringWithFormat:@"AnimalInfo: age: %li color: %@ height: %li ",self->_age,self->_color,self->_height];
}

@end

